package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.FoodMakeDao;
import com.neuedu.model.FoodMake;
import com.neuedu.service.FoodMakeService;

//配置一个spring的服务类，把业务实现类交给spring进行管理，把Spring完成依赖注入
@Service
public class FoodMakeServiceImpl implements FoodMakeService {

	// 织如入-依赖注入
	@Autowired
	private FoodMakeDao foodmakeDao;

	public void setFoodMakeDao(FoodMakeDao foodmakeDao) {
		this.foodmakeDao = foodmakeDao;
	}

	@Override
	public int countFoodMake() {
		// TODO 自动生成的方法存根
		return foodmakeDao.countFoodMake();
	}

	@Override
	public List<FoodMake> findAll(Map<String, Object> map) {
		// TODO 自动生成的方法存根
		return foodmakeDao.findAll(map);
	}

	@Override
	public int addFoodMake(FoodMake fm) {
		// TODO 自动生成的方法存根
		return foodmakeDao.addFoodMake(fm);
	}

	@Override
	public int updateFoodMake(FoodMake fm) {
		// TODO 自动生成的方法存根
		return foodmakeDao.updateFoodMake(fm);
	}

	@Override
	public int deleteFoodMake(int id) {
		// TODO 自动生成的方法存根
		return foodmakeDao.deleteFoodMake(id);
	}
	
	@Override
	public List<FoodMake> findList() {
		// TODO 自动生成的方法存根
		return foodmakeDao.findList();
	}
	@Override
	public List<FoodMake> findMake() {
		// TODO Auto-generated method stub
		return foodmakeDao.findMake();
	}

}
